module.exports = {
    // webpack-dev-server 相关配置
    publicPath:"/dogeyes",
    devServer: {
        proxy: {
            '/api': {//代理请求
                target: 'http://localhost:8080',
                ws: true,
                changeOrigin: true,
                pathRewrite: {
                    '^/api': '/mock'  //通过pathRewrite重写地址，将前缀/api转为/
                }
            }
        }
    },
}